<div id="content">
	<div id="top">
		<h3>New Checklist</h3>
		<%= render :partial => '/partials/help_link', :locals => {:path => {:controller => "help", :action => "checklists", :anchor => "new"}} %>
	</div>
	<div class="edit">
		<% form_for(@checklist) do |f| %>
		    <%= f.error_messages %>
			<div class="edit-table">
				<div class="edit-row">
					<div class="left">
						<%= f.label :name, "Checklist Name" %><span class="required">required</span>
						<p>Pick a checklist name.</p>
					</div>
					<div class="right">
						<div class="single">
							<%= f.text_field :name %>
						</div>
					</div>
				</div>
				<div class="edit-row">
					<div class="left">
						<%= f.label :type, "Checklist Type:"%><span class="required">required</span>
						<p>When should the courier complete this checklist?</p>
					</div>
					<div class="right">
						<div class="single">
							<%= f.select :checklist_type, Checklist::ChecklistTypes %>
						</div>
					</div>
				</div>
				<div class="edit-row">
					<div class="left">
						<label>Add Tasks</label><span class="required"><required></span>
						<p>Select the tasks in this checklist.</p>
					</div>
					<div class="right">
						<ol id="checklist_items">
							<%= render :partial => 'checklist_item', :collection => @checklist.checklist_items %>
						</ol>
						<%= add_task_link "Add Another Task", :checklist_items, 'checklist_item', ChecklistItem.new %>
					</div>
				</div>
			</div>
			<%= render :partial => 'partials/create_form', :locals => {:f => f} %>
		<% end %>
	</div>
</div>